package com.yunhe.assist.repository;

import com.yunhe.assist.domain.ParkIntroduceContact;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * @description park_introduce_contact
 * @author dlz
 * @date 2021-11-09
 */
@Repository
public interface ParkIntroduceContactRepository {

    /**
     * 新增
     * @author dlz
     * @date 2021/11/09
     **/
    int createParkIntroduceContact(ParkIntroduceContact parkIntroduceContact);

    /**
     * 新增
     * @author dlz
     * @date 2021/11/09
     **/
    int createParkIntroduceContactSelective(ParkIntroduceContact parkIntroduceContact);

    /**
     * 刪除
     * @author dlz
     * @date 2021/11/09
     **/
    int deleteParkIntroduceContactByPrimaryKey(@Param("id") int id);

    /**
     * 更新
     * @author dlz
     * @date 2021/11/09
     **/
    int updateParkIntroduceContactByPrimaryKey(ParkIntroduceContact parkIntroduceContact);

    /**
     * 更新
     * @author dlz
     * @date 2021/11/09
     **/
    int updateParkIntroduceContactByPrimaryKeySelective(ParkIntroduceContact parkIntroduceContact);

    /**
     * 根据主键查询
     * @author dlz
     * @date 2021/11/09
     **/
    ParkIntroduceContact searchParkIntroduceContactByPrimaryKey(@Param("id") int id);

    List<ParkIntroduceContact> findList(@Param("parkIntroduceId") long parkIntroduceId);

    //根基园区介绍主键id进行删除
    void deleteByIntroduceId(@Param("parkIntroduceId") long parkIntroduceId);
}